package com.cdks.wuxiu.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cdks.wuxiu.api.model.dto.CommentTopicInfoDTO;
import com.cdks.wuxiu.entity.mysql.CommentTopicInfo;

import java.util.List;

import org.apache.ibatis.annotations.Param;

/**
 * 评论主题 Mapper 接口
 */
public interface CommentTopicInfoMapper extends BaseMapper<CommentTopicInfo> {
    int addReplyCount(@Param("topicId") long topicId);

    List<CommentTopicInfoDTO> getListAll(@Param("userId") long userId, @Param("destId") long destId, @Param("destType") long destType, @Param("offset") int offset, @Param("pageSize") int pageSize);
    List<CommentTopicInfoDTO> getListMine(@Param("userId") long userId, @Param("destId") long destId, @Param("destType") long destType, @Param("offset") int offset, @Param("pageSize") int pageSize);
}
